package com.yoi.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.yoi.bean.Book;
import com.yoi.bean.Ordermessage;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface OrdermessageMapper {
    int deleteByPrimaryKey(Integer id);


    List<Ordermessage> AllOrder();

    List<Ordermessage> AllOrderByRecv(String Recv);
    int insert(Ordermessage record);

    @DS("mysql2")
    int insertToTest2(Ordermessage record);

    int insertSelective(Ordermessage record);

    Ordermessage selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Ordermessage record);

    int updateByPrimaryKey(Ordermessage record);
}